home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 816 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.3 KB

  1. From: "Dmitry M. Potapov" <dima@florin.msk.su>
  2. Message-ID: <199603211752.RAA03360@florin.msk.su>
  3. X-Original-Date: Thu, 21 Mar 96 20:52:53 +0300
  4. Path: in2.uu.net!bounce-back
  5. Date: 22 Mar 96 02:07:45 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Return-Path: <daemon@meeker.UCAR.EDU>
  8. Newsgroups: comp.std.c++
  9. Subject: Suggestion to c++ standard
  10. Organization: DataX/FLORIN, Inc.
  11. Reply-To: dima@florin.msk.su
  12. X-Return-Path: kiae![194.87.233.66]!florin.msk.su!dima
  13. Apparently-To: comp-std-c++@uunet.uu.net
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMVILeuEDnX0m9pzZAQEMRQGAltEcJrGL1OC3y/kTyUiM+VRbyQaAEcnv
  16.     R2r/AwAsES/u+I7LPXCsLNGPLavnHUT/
  17.     =jSuF
  18.  
  19. Dear readers,
  20.  
  21. Please let me explain the problem, which solution I think
  22. is in adding something to the c++ standard.
  23.  
  24. Many of us use old C libraries, and the possibility to use these
  25. libraries is one of the reasons of C++ success.
  26.  
  27. There exists a problem in C which often leads to terrible results.
  28. The problem is in program startup and initialization of global
  29. variables. 
  30. We cannot define the first operator in our programs and 
  31. this is terrible.
  32.  
  33. Sometimes our programs cannot reach main(), and sometimes (and it is even
  34. worse) programs reach main() with global variables initialized
  35. incorrectly. 
  36.  
  37. There is nothing good in undefined behavior, and this must be fixed
  38. in some way, I think.
  39.  
  40. I don't say I have a solution, 
  41. but it seems to me that it is based on introducing 
  42. classes TProgram, TProcess (for multithreading environments),
  43. TLibrary with some virtual methods as a part of c++ standard. 
  44. Concrete instances of these classes would be binded with
  45. libraries etc in some way and startup/initialization would be 
  46. completely defined.
  47. I'm not a specialist in compilers/linkers construction,
  48. but I love C++ and I want it to be better and live longer.
  49. These changes to c++ may introduce new incompatibilities
  50. with c, but would definitely improve the language.
  51.  
  52. Thanks,
  53.  
  54. Dmitry Potapov, dima@florin.msk.su
  55. -- 
  56. ---
  57. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  58. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  59. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  60. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  61. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  62.